<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Northwinddemo.DAL.EntityClasses.ProductsEntity>" %>

<table>
    <tr>
        <td>
            <%= Html.LabelFor(p => p.ProductName)%>
        </td>
        <td>
            <%= Html.EditorFor(p => p.ProductName)%>
            <%= Html.ValidationMessageFor(p => p.ProductName)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(p => p.SupplierId)%>
        </td>
        <td>
            <%= Html.EditorFor(p => p.SupplierId)%>
            <%= Html.ValidationMessageFor(p => p.SupplierId)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(p => p.CategoryId)%>
        </td>
        <td>
            <%= Html.EditorFor(p => p.CategoryId)%>
            <%= Html.ValidationMessageFor(p => p.CategoryId)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(p => p.QuantityPerUnit)%> 
        </td>
        <td>
            <%= Html.EditorFor(p => p.QuantityPerUnit)%>
            <%= Html.ValidationMessageFor(p => p.QuantityPerUnit)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(p => p.UnitPrice)%> 
        </td>
        <td>
            <%= Html.EditorFor(p => p.UnitPrice)%>
            <%= Html.ValidationMessageFor(p => p.UnitPrice)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(p => p.UnitsInStock)%> 
        </td>
        <td>
            <%= Html.EditorFor(p => p.UnitsInStock)%>
            <%= Html.ValidationMessageFor(p => p.UnitsInStock)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(p => p.UnitsOnOrder)%> 
        </td>
        <td>
            <%= Html.EditorFor(p => p.UnitsOnOrder)%>
            <%= Html.ValidationMessageFor(p => p.UnitsOnOrder)%>
        </td>
    </tr>
    
    <tr>
        <td>
            <%= Html.LabelFor(p => p.ReorderLevel)%> 
        </td>
        <td>
            <%= Html.EditorFor(p => p.ReorderLevel)%>
            <%= Html.ValidationMessageFor(p => p.ReorderLevel)%>
        </td>
    </tr>
    
    <tr>
        <td>
            <%= Html.LabelFor(p => p.Discontinued)%> 
        </td>
        <td>
            <%= Html.EditorFor(p => p.Discontinued)%>
            <%= Html.ValidationMessageFor(p => p.Discontinued)%>
        </td>
    </tr>

</table>

